package com.wzy.peopleManagement.commond
{
	import com.adobe.cairngorm.commands.ICommand;
	import com.adobe.cairngorm.control.CairngormEvent;
	import com.wzy.peopleManagement.business.UserDeledate;
	import com.wzy.peopleManagement.event.AddUserEvent;
	
	import mx.rpc.IResponder;

	public class AddUserCommond implements ICommand, IResponder
	{
		private var tw : * = null;
		private var flag : String;
		public function execute(event:CairngormEvent):void
		{
			var e : AddUserEvent = AddUserEvent(event);
			tw = e.vo.tw;
			flag = e.vo.flag;
			var deledate : UserDeledate = new UserDeledate(this);
			deledate.addUser(e.vo);
		}
		
		public function result(data:Object):void
		{
			var objTemp : Object = data.result;
			tw.refreshAction(objTemp,flag);
		}
		
		public function fault(info:Object):void
		{
		}
		
	}
}